package com.huabo.cybermonitor.mapper;

import com.huabo.cybermonitor.entity.MonitorRule;
import com.huabo.cybermonitor.entity.MonitorSolutionRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author kangjx
 * @since 2022-07-26
 */
public interface MonitorSolutionRuleMapper extends BaseMapper<MonitorSolutionRule> {


    @Select("select * from TBL_MONITOR_RULE where ruleid in ( " +
            "   select ruleid from TBL_MONITOR_SOLUTION_RULE where solutionid=#{solutionid} " +
            ")")
    public List<MonitorRule> queryRuleBySoluid(BigDecimal solutionid) ;



}
